package com.qdxwx.models.category;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分类对象 qdx_categories
 * @author MrGao
 * @date 2022-03-31
 */
public class Category implements Serializable {

    private static final long serialVersionUID = 5805753402257294610L;

    //主键
    private Integer categoryId;

    //父id
    private Integer parentId;

    //专业名称
    private String categoryName;

    //频道id
    private Integer channelId;

    //专业ID
    private Integer subjectId;

    //专业名称
    private String subjectName;

    //状态 0:默认 1:删除
    private Integer status;

    //排序
    private Integer sort;

    //子级数
    private Integer childCount;

    // 创建时间
    private LocalDateTime createTime;

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getChildCount() {
        return childCount;
    }

    public void setChildCount(Integer childCount) {
        this.childCount = childCount;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Category{" +
                "categoryId=" + categoryId +
                ", parentId=" + parentId +
                ", categoryName='" + categoryName + '\'' +
                ", channelId=" + channelId +
                ", subjectId=" + subjectId +
                ", subjectName='" + subjectName + '\'' +
                ", status=" + status +
                ", sort=" + sort +
                ", childCount=" + childCount +
                ", createTime=" + createTime +
                '}';
    }
}
